package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (TCoincertificate)实体类
 *
 * @author makejava
 * @since 2022-07-03 10:23:17
 */
@Data
@TableName("t_coincertificate")
@NoArgsConstructor
@AllArgsConstructor
public class TCoincertificate  {

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 买二赠一券
     */
    private Integer mtso;
    /**
     * 礼品兑换券
     */
    @TableField("gift_certificates")
    private Integer giftCertificates;
    /**
     * 礼品优惠券
     */
    @TableField("gift_coupons")
    private Integer giftCoupons;
    /**
     * 天天神券
     */
    private Integer dayticket;

    public TCoincertificate(Integer uid, Integer mtso, Integer giftCertificates, Integer giftCoupons, Integer dayticket) {
        this.uid = uid;
        this.mtso = mtso;
        this.giftCertificates = giftCertificates;
        this.giftCoupons = giftCoupons;
        this.dayticket = dayticket;
    }

    public TCoincertificate(Integer uid) {
        this.uid = uid;
    }
}

